FROM registry.cn-hangzhou.aliyuncs.com/choerodon-tools/javabase:0.8.0
RUN ["mkdir", "-p", "/onestep/lib"]
ENV JAVA_OPTS="\
-Dfile.encoding=UTF-8 \
-javaagent:/onestep/lib/transmittable-thread-local-2.6.1.jar"
ENV TZ=Asia/Shanghai
COPY ./target/app.jar /onestep/app.jar
COPY ./transmittable-thread-local-2.6.1.jar /onestep/lib/transmittable-thread-local-2.6.1.jar
ENTRYPOINT [ "sh", "-c", "java $JAVA_OPTS -jar -Xms512m /onestep/app.jar" ]
